package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.Role;

import java.util.List;

import vn.edu.ptithcm.pim.dao.RoleDao;
@SuppressWarnings({ "rawtypes" })
public class RoleService {
	private RoleDao roleDao;

	public RoleDao getRoleDao() {
		return roleDao;
	}

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	public void save(Role role) {
		roleDao.save(role);
	}

	public void saveOrUpdate(Role role) {
		roleDao.saveOrUpdate(role);
	}

	public void lock(Role role) {
		roleDao.lock(role);
	}

	public void delete(Role role) {
		roleDao.delete(role);
	}

	public Role merge(Role role) {
		return roleDao.merge(role);
	}

	public Role findById(java.lang.Long id) {
		return roleDao.findById(id);
	}

	public List findByExample(Role role) {
		return roleDao.findByExample(role);
	}

	public List getAll() {
		return roleDao.getAll();
	}
}
